home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / streaming / qtspacketizerreassembler / componentvideortp / headers / componentvideortp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.8 KB  |  80 lines

  1. /*
  2.     File:        ComponentVideoRTP.h
  3.  
  4.     Contains:    Declarations for Component Video RTP components
  5.  
  6.     Copyright:    © 1997-1999 by Apple Computer Inc. all rights reserved.
  7.  
  8. */
  9.  
  10.  
  11.  
  12. #ifndef __COMPONENTVIDEORTP__
  13. #define __COMPONENTVIDEORTP__
  14.  
  15.  
  16.  
  17. /* ---------------------------------------------------------------------------
  18.  *        H E A D E R S
  19.  * ---------------------------------------------------------------------------
  20.  */
  21.  
  22. #ifdef REZ
  23. #    include "ConditionalMacros.r"
  24. #else
  25. #    include <ConditionalMacros.h>
  26. #    include "ComponentVideoPayload.h"
  27. #endif /* REZ */
  28.  
  29.  
  30.  
  31. /* ---------------------------------------------------------------------------
  32.  *        M A C R O S
  33.  * ---------------------------------------------------------------------------
  34.  */
  35.  
  36. #ifndef REZ
  37. #    if __cplusplus
  38. #        define C_CAST( aType )                ( aType )
  39. #        define REINTERPRET_CAST( aType )    reinterpret_cast< aType >
  40. #        define STATIC_CAST( aType )            static_cast< aType >
  41. #        define CONST_CAST( aType )            const_cast< aType >
  42. #    else
  43. #        define __CAST( anExpression )        ( anExpression )
  44. #        define C_CAST( aType )                ( aType ) __CAST
  45. #        define REINTERPRET_CAST( aType )    C_CAST( aType )
  46. #        define STATIC_CAST( aType )            C_CAST( aType )
  47. #        define CONST_CAST( aType )            C_CAST( aType )
  48. #    endif /* __cplusplus */
  49. #endif /* REZ */
  50.  
  51.  
  52.  
  53. /* ---------------------------------------------------------------------------
  54.  *        C O N S T A N T S
  55.  * ---------------------------------------------------------------------------
  56.  */
  57.  
  58. #ifdef REZ
  59. enum
  60. {
  61.     kComponentVideoDataFormat    = 'yuv2',    /* kComponentVideoCodecType */
  62.     kComponentManufactureType    = 'SMPL'
  63. };
  64. #else
  65. enum
  66. {
  67.     kComponentVideoDataFormat    = FOUR_CHAR_CODE( 'yuv2' ),    /* kComponentVideoCodecType */
  68.     kComponentManufactureType    = FOUR_CHAR_CODE( 'SMPL' )
  69. };
  70. #endif /* REZ */
  71.  
  72. enum
  73. {
  74.     kComponentVideoRTPTimeScale = 90000        /* RFC 1890 recommended video clock rate */
  75. };
  76.  
  77.  
  78.  
  79. #endif /* __COMPONENTVIDEORTP__ */
  80.